package com.woniu.adminservice.controller;

import com.woniu.adminservice.commeon.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Auther: huangjing  <br/>
 * Date: 2020/3/24$:17:35$  <br/>
 * Description:
 */
@Controller
@RequestMapping("/userData")
public class UserDataController {
    @Autowired
    UserDataService userDataService;
    @GetMapping("/infoList")
    @ResponseBody
    public CommonResult infoList(){
      List userInfoList=  userDataService.selectUserInfoList();

      return  CommonResult.success(userInfoList);
    }
}